#pragma once

#include <pjsua2.hpp>

using namespace pj;

class MyAudioMediaPort : public AudioMediaPort
{
private:
    string _invokeMethod;
public:
    AudioMedia *bindMeida = nullptr;
    MyAudioMediaPort(const string &invokeMethod) : AudioMediaPort()
    {
        _invokeMethod = invokeMethod;
    }
    void onFrameRequested(MediaFrame &frame) override;
    void onFrameReceived(MediaFrame &frame) override;
};